<!-- 新闻详情列表 -->
<template>
  <el-form :data="adInfo" label-position="right" label-width="80px" border>
    <el-form-item label="轮播编号">
      <el-input v-model="adInfo.bannerId" disabled/>
    </el-form-item>
    <el-form-item label="轮播名称">
      <el-input v-model="adInfo.name" disabled/>
    </el-form-item>
    <el-form-item label="链接地址">
      <el-input v-model="adInfo.url" disabled/>
    </el-form-item>
    <el-form-item label="图片地址">
      <el-input v-model="adInfo.src" disabled/>
    </el-form-item>
    <el-form-item label="排序值">
      <el-input v-model="adInfo.sortNum" disabled/>
    </el-form-item>
    <el-form-item label="轮播类型">
      <el-input v-model="adInfo.type" disabled/>
    </el-form-item>
    <el-form-item label="信息状态">
      <el-input v-model="adInfo.status" disabled/>
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: 'adInfo',
  data () {
    return {
      loading: false,
      adInfo: {}
    }
  },
  methods: {
    init (bannerId) {
      this.$http.get(`/sys/banner/info/${bannerId}`).then(({ data }) => {
        if (data.code === 200) {
          this.adInfo = data.data
        }
      })
    }
  },
  created () {
    this.$nextTick(() => {
      this.init()
    })
  }
}
</script>

<style scoped lang="scss">

</style>
